<!-- 继承公共的 form -->
{{extend name="public/module/form" /}}

<!-- 表单顶部操作栏 -->
{{block name="form_operate_top"}}
    <a href="{{:MyUrl('admin/answer/saveinfo')}}" class="am-btn am-btn-secondary am-radius am-btn-xs am-icon-plus"> {{:MyLang('add_title')}}</a>
    <!-- 父级内容 -->
    {__block__}
{{/block}}

<!-- 扩展 -->
{{block name="form_extend"}}
    <!-- 处理窗口 -->
    <div class="am-popup am-radius" id="my-popup-reply">
        <div class="am-popup-inner">
            <div class="am-popup-hd">
                <h4 class="am-popup-title">{{:MyLang('reply_title')}}</h4>
                <span data-am-modal-close class="am-close">&times;</span>
            </div>
            <div class="am-popup-bd">
                <dl class="dl-content">
                    <dt>{{:MyLang('answer.user_info_title')}}</dt>
                    <dd class="user-info">
                        <img src="{{$attachment_host}}/static/common/images/user-img-sm.gif" class="am-img-thumbnail am-radius am-align-left am-margin-right-xs am-margin-bottom-0" width="35" height="35" />
                        <ul class="user-base">
                            <li class="username">{{:MyLang('user_username_title')}}：<span>...</span></li>
                            <li class="nickname">{{:MyLang('user_nickname_title')}}：<span>...</span></li>
                            <li class="mobile">{{:MyLang('user_mobile_title')}}：<span>...</span></li>
                            <li class="email">{{:MyLang('user_email_title')}}：<span>...</span></li>
                        </ul>
                    </dd>
                </dl>

                <form class="am-form form-validation-reply am-form-popup-fixed" action="{{:MyUrl('admin/answer/reply')}}" method="POST" request-type="ajax-reload" enctype="multipart/form-data">
                    <div class="am-form-group am-form-group-refreshing">
                        <label>{{:MyLang('answer.form_item_reply')}}</label>
                        <textarea name="reply" rows="5" class="am-radius" placeholder="{{:MyLang('answer.form_item_save_reply_message')}}" data-validation-message="{{:MyLang('answer.form_item_save_reply_message')}}" maxlength="1000" required></textarea>
                    </div>
                    <div class="am-form-popup-submit">
                        <input type="hidden" name="id" value="" />
                        <button type="submit" class="am-btn am-btn-success am-radius am-btn-sm am-btn-block" data-am-loading="{loadingText:'{{:MyLang('processing_tips')}}'}">{{:MyLang('reply_title')}}</button>
                    </div>
                </form>
            </div>
        </div>
    </div>
{{/block}}